<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<link rel="stylesheet" type="text/css" href="js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="js/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="css/list.css">

<script type="text/javascript" src="js/easyui/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="js/uploadify/jquery.uploadify.js"></script>
<script type="text/javascript" src="js/getUrlParam.js"></script>
<script type="text/javascript" src="js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="js/highchars/highcharts.js"></script>
<script type="text/javascript" src="js/flotr/flotr2.min.js"></script>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js"></script>

<!--[if IE]>
	<script type="text/javascript" src="js/highchars/excanvas.compiled.js"></script>
<![endif]-->

<script type="text/javascript">
	var mainform;
	var map;
	var frame=$("#openFrame");

	$.extend($.messager.defaults, {
		ok : "确定",
		cancel : "取消"
	});
	
	$.Datatype.d=/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/;
	
	$(function(){
		mainform=$("#mainform").Validform({
			tiptype:function(msg,o,cssctl){
			if(!o.obj.is("form")){//验证表单元素时o.obj为该表单元素，全部验证通过提交表单时o.obj为该表单对象;
				var objtip=o.obj.siblings(".Validform_checktip");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}else{
				var objtip=o.obj.find("#msgdemo");
				cssctl(objtip,o.type);
				objtip.text(msg);
			}
		},
		ajaxPost:true
		});
	});
	
	//验证函数
	
	//判断日期类型是否为YYYY-MM-DD格式的类型    
	function isNull(note){
		var val=document.getElementById(note).value;
		if(val.length==0){
			$.messager.alert('提示','请选择日期!',"info");
			return false;
		}
		return true;
	}
	
	
	//判断两个日期大小
	function checkdate(date1,date2){
		var sDate=new Date(document.getElementById(date1).value.replace(/\-/g, "\/"));
		var eDate=new Date(document.getElementById(date2).value.replace(/\-/g, "\/"));
		if(sDate>eDate ){
			$.messager.alert('提示','结束时间不能小于开始时间!',"info");
			return false;
		}		
		return true;
	}
	
	function pageLoading(value){
		value.write("<div style='height:100%;width:100%;text-align:center; position:static;position:absolute;top:50%;'><img src='images/bigloading.gif'/></div>");
	}
	
</script>